package com.doudou.collection.domain.service.admin.impl;

import com.doudou.collection.dao.mapper.admin.SysDictDataMapper;
import com.doudou.collection.domain.service.admin.SysDictTypeService;
import com.doudou.collection.orm.vo.admin.SysDictDataVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName SysDictTypeServiceImpl
 * @Description 字典 业务层处理
 * @Author blue sky
 * @Date 2023/7/6 0:08
 * @Version 1.0
 */
@Slf4j
@Service
public class SysDictTypeServiceImpl implements SysDictTypeService {

    @Autowired
    private SysDictDataMapper sysDictDataMapper;

    @Override
    public List<SysDictDataVO> listByType(String dictType) {
        log.debug("正在处理【获取字典类型数据信息】业务逻辑，参数：{}", dictType);
        List<SysDictDataVO> dictList = sysDictDataMapper.listByType(dictType);
        return dictList;
    }
}
